import { post, remove, get, put } from './api'
// import { read } from '../store/modules/init.js'
// 获取角色列表
export const getLogTableApi = (newPer) => {
    const url = '/usermgt/operationLog'
    const body = {
        method: 'getLogs',
        args: JSON.stringify(newPer)
    }
    return post(url, body)
}
//根据用户名获取员工姓名
export const postEmployeeNameApi = (newPer) => {
    const url = '/usermgt/employee'
    const body = {
        method: 'getEmployeeNames',
        args: JSON.stringify({'userNames' : newPer})
    }
    return post(url, body)
}